package com.jml.redis.手写redis.controller;

import com.jml.redis.手写redis.entity.User;
import com.jml.redis.手写redis.service.UserService;
import com.jml.redis.手写redis.utils.RedisUtils;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
	@Autowired
	private UserService userService;
	@Autowired
	private RedisUtils redisUtils;

	// 查询所有数据
	@RequestMapping("/getUsers")
	public List<User> getUsers(String name) {
		return userService.getUsers(name);
	}

}
